/**
 * 
 */
package com.hera.base.servlet.designer;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author cmontes
 *
 */
public class FlowDesignerServlet2 extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = -225241408121178931L;

	/**
	 * 
	 */
	
	@Override
    protected void doGet(HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
		System.out.println("enviando el diseñador");
		//response.sendRedirect("flowdesigner/demo_basic1.jsp");
		BufferedReader br = null;
		 
		try {
 
			String sCurrentLine;
 
			br = new BufferedReader(new FileReader("D:/cristian/apps/workflow/wrkspace/process-web/src/main/webapp/flowdesigner/demo_basic1.jsp"));
 
			while ((sCurrentLine = br.readLine()) != null) {
				System.out.println(sCurrentLine);
				response.getWriter().write(sCurrentLine);
			}
 
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			try {
				if (br != null)br.close();
				response.flushBuffer();
			} catch (IOException ex) {
				ex.printStackTrace();
			}
		}
		
				
	}
	

}
